import axios from '../libs/api.request';

export const getDict = ({id}) =>{
    const  data = {
        id
    }
    return axios.request({
        url: '/dict/get',
        data,
        method: 'post'
    });
}

export const isExit = ({type,code}) =>{
    const data = {
        type,
        code
    }
    return axios.request({
        url: '/dict/exit',
        data,
        method: 'post'
    });
}

export const getDictList = data => {
    return axios.request({
        url: '/dict/getDictList',
        data,
        method: 'post'
    });
};